package cn.itsource.org.query;

import lombok.Data;

/**
 * 分页查询类
 * @author Administrator
 */
@Data
public class EmployeeQuery {
    private Integer currentPage=1;
    private Integer pageSize=10;

    /**
     *  查询关键字
     */
    private String keyWorks;
    /**
     * 计算当前页的索引
     */
    public Integer getStartPage(){
        return (this.currentPage-1)*this.pageSize;
    }
}
